package com.yundasys.lab16springbootplus.lab16springbootplus;

import com.yundasys.lab16springbootplus.lab16springbootplus.beandefinitionregistrar.ImportTestDao;
import com.yundasys.lab16springbootplus.lab16springbootplus.beandefinitionregistrar.MyScaner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
//@Import(MyImportSelect.class)
@MyScaner
public class Lab16SpringbootPlusApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext anno = SpringApplication.run(Lab16SpringbootPlusApplication.class, args);

        ImportTestDao importTestDao= (ImportTestDao) anno.getBean("importTestDao");
        importTestDao.query();
    }

}
